<div style="height: 30px; border-bottom: 4px solid #DFDFDF;">
	<p class="pull-left" style="font-size: 16px; line-height: 30px;">
		<strong><?php echo $this->translate('管理商品'); ?> </strong>
	</p>
	<p class="pull-right">
		<a
			href="<?php echo $this->url('paper/default',array('action'=>'add','controller'=>'paper')); ?>"
			class="btn btn-small btn-primary">
			<i class="icon-plus icon-white"></i>
			<?php echo $this->translate('添加商品'); ?>
		</a>
		</p>
</div>
            <table class="table table-hover">
            <thead style="background:#CCC;">
            	<tr>
                    <th width="10%"><?php echo $this->translate('交付时长'); ?></th>
                    <th width="10%"><?php echo $this->translate('行间距'); ?></th>
                    <th width="10%"><?php echo $this->translate('页数'); ?></th>
                    <th width="10%"><?php echo $this->translate('价格'); ?></th>
                    <th width="10%"><?php echo $this->translate('倍率'); ?></th>
					<th width="10%"><?php echo $this->translate('上传时间'); ?></th>
					<th width="10%"><?php echo $this->translate('操作'); ?></th>
                </tr>
            </thead>
            <?php
			if ($this->ship_list) {
				foreach ($this->ship_list as $ship_val) {
			?>            
            <tr>
            	<td><?php echo $ship_val['delivery_time'] ?></td>
            	<td><?php echo $this->escapeHtml($ship_val['line_spacing']); ?></td>
                <td><?php echo $ship_val['pages']; ?></td>
                <td><?php echo $this->escapeHtml($ship_val['price']); ?></td>
                <td><?php echo $ship_val['ratio'] ?></td>
				  <td><?php echo $ship_val['time'] ?></td>
				<!--<td><?php echo date('Y-m-d H:i:s',$ship_val['time']); ?></td>-->

            	<td>
                <a href="<?php echo $this->url('paper/default/id',array('action'=>'edit1','controller'=>'Paper','id'=>$ship_val['id'],'page'=>$this->page)); ?>"><?php echo $this->translate('修改'); ?></a>|
                <a href="<?php echo $this->url('paper/default/id',array('action'=>'edit1','controller'=>'Paper','id'=>$ship_val['id'],'page'=>$this->page)); ?>"><?php echo $this->translate('删除'); ?></a>
				</td>  
            </tr>
            <?php
				}
			}
			?>
            <tr>
			<td colspan="9" style="background: #FFF">
				<?php echo ( count($this->ship_list) > 0 ) ? $this->paginationControl($this->ship_list, 'Sliding', 'common/pager',array('page_url'=>$this->url('paper/default/page',array('controller'=>'Paper', 'action'=>'paper')))) : ""; ?>
                </td>
		</tr>
            </table>